﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Admin.NET.Core.Enums;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 缴费表
/// </summary>
[SugarTable("PayFess","缴费表")]
[Tenant("1300000000001")]
public class PayFess  : EntityBase
{
    /// <summary>
    /// 流水号
    /// </summary>
    [SugarColumn(ColumnName = "SerialNumber", ColumnDescription = "流水号", Length = 32)]
    public string? SerialNumber { get; set; }
    
    /// <summary>
    /// 账单编号
    /// </summary>
    [SugarColumn(ColumnName = "BillNumber", ColumnDescription = "账单编号", Length = 32)]
    public string? BillNumber { get; set; }
    
    /// <summary>
    /// 账单类目
    /// </summary>
    [SugarColumn(ColumnName = "ItemBil", ColumnDescription = "账单类目")]
    public PayItemBills ItemBil { get; set; }
    
    /// <summary>
    /// 实收金额
    /// </summary>
    [SugarColumn(ColumnName = "PaidAmount", ColumnDescription = "实收金额", Length = 32, DecimalDigits=0 )]
    public decimal? PaidAmount { get; set; }
    
    /// <summary>
    /// 缴费时间
    /// </summary>
    [SugarColumn(ColumnName = "PaymentTime", ColumnDescription = "缴费时间")]
    public DateTime? PaymentTime { get; set; }
    
    /// <summary>
    /// 支付方式
    /// </summary>
    [SugarColumn(ColumnName = "Paymentmethod", ColumnDescription = "支付方式")]
    public PaymentMethods Paymentmethod { get; set; }
    
    /// <summary>
    /// 计费周期(开始)
    /// </summary>
    [SugarColumn(ColumnName = "Chargingcyclestart", ColumnDescription = "计费周期(开始)")]
    public DateTime? Chargingcyclestart { get; set; }
    
    /// <summary>
    /// 计费周期(结束)
    /// </summary>
    [SugarColumn(ColumnName = "ChargingcycleEnd", ColumnDescription = "计费周期(结束)")]
    public DateTime? ChargingcycleEnd { get; set; }
    
    /// <summary>
    /// 应收金额
    /// </summary>
    [SugarColumn(ColumnName = "AmountReceivable", ColumnDescription = "应收金额", Length = 32, DecimalDigits=0 )]
    public decimal? AmountReceivable { get; set; }
    
    /// <summary>
    /// 应收时间
    /// </summary>
    [SugarColumn(ColumnName = "ReceivableTime", ColumnDescription = "应收时间")]
    public DateTime? ReceivableTime { get; set; }
    
    /// <summary>
    /// 账单状态
    /// </summary>
    [SugarColumn(ColumnName = "BillingStatus", ColumnDescription = "账单状态")]
    public PayBillingStatus BillingStatus { get; set; }
    
    /// <summary>
    /// 创建者部门Id
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
    public long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 创建者部门名称
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
    public string? CreateOrgName { get; set; }
    
    /// <summary>
    /// 房屋Id
    /// </summary>
    [SugarColumn(ColumnName = "HouseId", ColumnDescription = "房屋Id")]
    public long? HouseId { get; set; }
    
}
